import {
  Column,
  CreateDateColumn,
  Entity,
  PrimaryGeneratedColumn,
  UpdateDateColumn,
} from 'typeorm';

@Entity()
export class Role {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({unique:true})
  code: string;

  @Column()
  label:string

  @UpdateDateColumn({ name: 'update_time' })
  updateTime: Date;

  @CreateDateColumn({ name: 'create_time' })
  createTime: Date;
}
